package com.base.service.impl;

import com.base.mapper.voipmapper.AddressBookMapper;
import com.base.po.voip.AddressBook;
import com.base.po.voip.AddressBookExample;
import com.base.service.AddressBookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("addressBookService")
public class AddressBookServiceImpl implements AddressBookService {
	
	@Autowired
	private AddressBookMapper addressBookMapper;


	@Override
	public int countByExample(AddressBookExample example) {
		return addressBookMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(AddressBookExample example) {
		return addressBookMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		return addressBookMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(AddressBook record) {
		return addressBookMapper.insert(record);
	}

	@Override
	public int insertSelective(AddressBook record) {
		return addressBookMapper.insertSelective(record);
	}

	@Override
	public List<AddressBook> selectByExample(AddressBookExample example) {
		return addressBookMapper.selectByExample(example);
	}

    @Override
    public List<AddressBook> selectByUserID(String userid) {
        return addressBookMapper.selectByUserID(userid);
    }

    @Override
	public AddressBook selectByPrimaryKey(Integer id) {
		return addressBookMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(AddressBook record, AddressBookExample example) {
		return addressBookMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(AddressBook record, AddressBookExample example) {
		return addressBookMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(AddressBook record) {
		return addressBookMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(AddressBook record) {
		return addressBookMapper.updateByPrimaryKey(record);
	}
}
